﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
    <link href="../styles/js-console.css" rel="stylesheet" />
</head>
<body>
    <div><div><div><div></div></div></div></div>
    <div></div>
    <div id="js-console"></div>
    <script src="../scripts/js-console.js"></script>
    <script>
        function countTotalNumberOfDivs() {
            var numberOfDivs = document.getElementsByTagName('div').length;
            
            return numberOfDivs;
        }

        jsConsole.writeLine(countTotalNumberOfDivs());
    </script>
</body>
</html>
